#ifndef NEWGAME_H
#define NEWGAME_H

#include <QDialog>

namespace Ui {
    class NewGame;
}
class VSSocket;
class VSServer;
class NewGame : public QDialog
{
    Q_OBJECT

public:
    explicit NewGame(QWidget *parent = 0);
    ~NewGame();
signals:
	void start();
	void error();
private slots:
	void addMsg(const QString s);
	void newCon();
	void on_single_toggled(bool checked);

	void on_network_toggled(bool checked);

	void on_singleblack_clicked();

	void on_netblack_clicked();

	void on_singlewhite_clicked();

	void on_netwhite_clicked();

	void on_server_toggled(bool checked);

	void on_ok_clicked();

	void on_con_clicked();
	void onready();
	void connected();
	void onerror();
private:

    Ui::NewGame *ui;
	QString msg;
	VSSocket *socket;
	VSServer *server;
};

#endif // NEWGAME_H
